package com.ynet.middleground.contract.bean;

import java.io.Serializable;
import java.util.List;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 项目名：ifp-contract <br>
 * 包名：com.ynet.middleground.contract.bean <br>
 * 类名：MergeCellTableInfo <br>
 * 描述： 合并单元格的表格信息
 * 
 * @author liulx
 * @create 2021-09-13 10:46
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "合并单元格的表格信息", description = "合并单元格的表格信息")
public class MergeCellTableInfo implements Serializable {

    private static final long serialVersionUID = 3230172120111356452L;

    @Valid
    @NotEmpty(message = "合并单元格的表格参数名称不能为空")
    @ApiModelProperty(value = "合并单元格的表格参数名称", notes = "合并单元格的表格参数名称", dataType = "String", required = true,
        example = "invoice_tables")
    private String tableName;

    @Valid
    @NotNull(message = "垂直合并单元格信息列表不能为空")
    @ApiModelProperty(value = "垂直合并单元格信息列表", notes = "垂直合并单元格信息列表", required = true)
    private List<MergeCellVerticallyBean> mergeCellsVertically;

    @Valid
    @NotNull(message = "水平合并单元格信息列表不能为空")
    @ApiModelProperty(value = "水平合并单元格信息列表", notes = "水平合并单元格信息列表", required = true)
    private List<MergeCellsHorizonalBean> mergeCellsHorizonal;

}
